import service from '@/utils/request'

// @Tags Capacity
// @Summary 创建capacity表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Capacity true "创建capacity表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /capacitys/createCapacity [post]
export const createCapacity = (data) => {
    return service({
        url: '/capacitys/createCapacity',
        method: 'post',
        data
    })
}

// @Tags Capacity
// @Summary 删除capacity表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Capacity true "删除capacity表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /capacitys/deleteCapacity [delete]
export const deleteCapacity = (data) => {
    return service({
        url: '/capacitys/deleteCapacity',
        method: 'delete',
        data
    })
}

// @Tags Capacity
// @Summary 批量删除capacity表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除capacity表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /capacitys/deleteCapacity [delete]
export const deleteCapacityByIds = (data) => {
    return service({
        url: '/capacitys/deleteCapacityByIds',
        method: 'delete',
        data
    })
}

// @Tags Capacity
// @Summary 更新capacity表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Capacity true "更新capacity表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /capacitys/updateCapacity [put]
export const updateCapacity = (data) => {
    return service({
        url: '/capacitys/updateCapacity',
        method: 'put',
        data
    })
}

// @Tags Capacity
// @Summary 用id查询capacity表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Capacity true "用id查询capacity表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /capacitys/findCapacity [get]
export const findCapacity = (params) => {
    return service({
        url: '/capacitys/findCapacity',
        method: 'get',
        params
    })
}

// @Tags Capacity
// @Summary 分页获取capacity表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取capacity表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /capacitys/getCapacityList [get]
export const getCapacityList = (params) => {
    return service({
        url: '/capacitys/getCapacityList',
        method: 'get',
        params
    })
}

export const getTuData = (params) => {
    return service({
        url: '/interview/getInterviewPower',
        method: 'get',
        params
    })
}
